@color: #fff;
.home {
    // /* fallback for old browsers */
    // background: -webkit-linear-gradient(to right, #4eeea4, #2dfe69, #39fc81);
    // /* Chrome 10-25, Safari 5.1-6 */
    // background: linear-gradient(to right, #4eeea4, #2dfe69, #39fc81);
    &_bg {
        background-image: url(../../assets/homebg.png);
        background-size: 100% 100%;
        height: 4.35rem;
        top: 0;
        left: 0;
        width: 100%;
        overflow: visible;
    }
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    &_nav {
        position: fixed;
        top: 0;
        background: initial;
        .icon {
            height: 1.1rem;
            width: 1.1rem;
        }
        .logo {
            width: 2rem;
            height: 1.1rem;
            margin: 0 auto;
        }
    }
    &_nav_view {
        padding: 0 0.35rem;
        position: relative;
    }
    .fixed {
        top: 0;
        z-index: 10;
        position: fixed !important;
    }
    .classfy {
        .am-carousel {
            height: 8.6rem !important;
            .slider-frame {
                height: 100% !important;
            }
        }
    }
    &_content {
        padding:0.45rem 0.35rem;
        background: #65f7e2;
        padding-bottom: 0.45rem;
    }
    &_search {
        margin: 0 0.4rem;
        margin-bottom: 0.35rem;
        border-radius: 0.75rem;
        font-size: 0.65rem;
        background: rgba(255, 255, 255, 0.9);
        position: fixed;
        top: 2.5rem;
        width: calc(100% - 0.8rem);
        color: #999999;
        transition: initial;
        z-index: 10;
    }
    .border {
        background: #f4f4f4;
    }
    .am-badge-text{
        font-size: 0.5rem;
        height: 0.7rem;
        line-height: 0.75rem;
        background: rgb(250, 0, 0);
    }
    .grid__carousel {
        position: relative;
        top: 0.3rem;
        // height: 4rem;
        touch-action: none;
        .am-carousel-wrap {
            position: relative;
            top: 0.5rem;
        }
    }
    .grid_item {
        background: #fff;
        font-size: 0.525rem;
        text-align: center;
        padding: 0.25rem 0;
        position: fixed;
        top: 2.5rem;
        left: 0;
        width: 100%;
        white-space: nowrap;
        z-index: 9;
        &::after {
            content: "";
            display: block;
            position: absolute;
            left: -50%;
            bottom: 0;
            width: 200%;
            height: 1px;
            background: #ededed;
            transform: scale(0.5);
        }
        >div {
            margin-left: 0.5rem;
        }
        img {
            width: 1.95rem;
            height: 1.95rem;
        }
        .text {
            margin-top: 0.3rem;
        }
    }
    .ant-affix {
        width: 100% !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        top: 0rem !important;
    }
    &_carouse {
        .slider-list {
            height: 6.95rem !important;
        }
        .am-carousel-wrap-dot {
            position: relative;
            top: 0.4rem;
            span {
                width: 0.85rem;
                height: 0.1rem;
                border-radius: 0.05rem;
                background: rgba(255, 255, 255, 0.5);
            }
        }
        .am-carousel-wrap-dot-active {
            span {
                background: @color;
            }
        }
        img {
            height: 6.95rem;
            width: 100%;
            border-radius: 0.35rem
        }
    }
    &_hd {
        position: relative;
        img {
            height: 5.75rem;
            width: 100%;
            position: relative;
            z-index: 2;
            display: block;
        }
    }
    .grid {
        .am-grid.am-grid-square .am-grid-item .am-grid-item-inner-content .am-grid-icon {
            width: 2.35rem !important;
            height: 2.35rem !important;
        }
        .am-grid .am-flexbox .am-flexbox-item .am-grid-item-content .am-grid-item-inner-content .am-grid-text {
            font-size: 0.62rem;
        }
        .am-grid .am-carousel .am-carousel-wrap-dot>span {
            width: 0.85rem;
            height: 0.1rem;
            border-radius: 0.05rem;
            background: rgba(204, 204, 204, 0.5);
        }
        .am-grid .am-carousel .am-carousel-wrap-dot-active>span {
            background: #ccc;
        }
    }
    .list_ii {
        height: 3.9rem;
        padding: 0;
        box-sizing: border-box;
        img {
            display: block;
            width: 100%;
            height: 100%;
        }
    }
    .list_new {
        .grid_title {
            font-size: 0.75rem;
            color: #333333;
            height: 1.3rem;
            span {
                color: #ff0000;
            }
        }
        .grid_content {
            height: 10rem;
            >div {
                height: 100%;
                width: 7rem;
                margin-right: 0.1rem;
                img {
                    height: 100%;
                    width: 100%;
                    display: block;
                }
            }
            .right {
                img {
                    height: 4.95rem;
                    width: 100%;
                    margin-bottom: 0.1rem;
                    display: block;
                    &:last-child {
                        margin-top: 0.1rem;
                        margin-bottom: 0rem;
                    }
                }
            }
        }
    }
    .home_hd_c {
        position: absolute;
        z-index: 1;
        top: 1.025rem;
        left: 1.4rem;
    }
    .home_hd_carouse {
        height: 3.4rem !important;
        width: 4rem !important;
        display: inline-block !important;
        overflow: hidden;
        position: relative;
        left: 0.2rem;
        .slider-list {
            height: 3rem !important;
        }
        img {
            height: 3.4rem;
            width: 3.8rem;
            display: block;
        }
    }
    .list_pep {
        background: #00dbcd;
        margin-bottom: 0;
        .grid_title {
            font-size: 0.75rem;
            color: #fff;
            height: 1.55rem;
            .btn {
                height: 1.2rem;
                border: 0.05rem solid #fff;
                border-radius: 0.625rem;
                font-size: 0.6rem;
                box-sizing: border-box;
                width: 3.65rem;
                padding: 0 0.4rem;
                color: #fff;
                position: relative;
                background: initial;
                bottom: 0.2rem;
                img {
                    width: 0.6rem;
                    height: 0.6rem;
                    vertical-align: middle;
                    position: relative;
                    margin-left: 0.1rem;
                    bottom: 0.1rem;
                }
                >div {
                    position: relative;
                    top: 0.05rem;
                }
            }
            .changeBtn{
                &.mk_btn.disabled{
                    background-color: rgba(10,10,10,0) !important;
                    border-color: #fff !important;
                }
            }
        }
        .grid_content {
            .item_sp {
                text-align: center;
                background: #fff;
                height: 8.05rem;
                box-sizing: border-box;
                padding-top: 0.5rem;
                margin-right: 0.25rem;
                &:last-child {
                    margin-right: 0;
                }
                img {
                    height: 4.4rem;
                    width: 4.75rem;
                    display: block;
                    margin: 0 auto;
                }
                .btn {
                    font-size: 0.6rem;
                    height: 0.9rem;
                    width: 4.75rem;
                    box-sizing: border-box;
                    border-radius: 0.45rem;
                    color: #fff;
                    background: #fe253b;
                    /* fallback for old browsers */
                    background: -webkit-linear-gradient(to right, #fe253b, #fe1568, #ff019e);
                    /* Chrome 10-25, Safari 5.1-6 */
                    background: linear-gradient(to right, #fe253b, #fe1568, #ff019e);
                    margin: 0 auto;
                    margin-top: 0.55rem;
                }
                .title {
                    margin-top: 0.45rem;
                    font-size: 0.65rem;
                    color: #333;
                    img {
                        height: 0.6rem;
                        width: 0.35rem;
                        margin-left: 0.2rem;
                        display: inline-block;
                        position: relative;
                        top: 0.05rem;
                    }
                }
            }
        }
    }
    .rotate {
        animation-name: rotate;
        animation-duration: 2s;
        animation-timing-function: ease-in;
    }

    @keyframes rotate {
        100% {
            transform: rotate(360deg) translateZ(0);
        }
    }
    .list_hh {
        .qiangou {
            font-size: 0.7rem;
            color: #333333;
        }
        .gird_content {
            .hdd {
                height: 7.7rem;
                width: 100%;
                display: block;
            }
            .item {
                background: url('../../assets/sale.png');
                background-size: 100% 100%;
                height: 8.95rem;
                margin-right: 0.4rem;
                &:last-child {
                    background: url('../../assets/new.png');
                    background-size: 100% 100%;
                    margin-right: 0;
                }
                .time {
                    margin-left: 0.85rem;
                    .btn {
                        width: 0.8rem;
                        height: 0.8rem;
                        background: #333333;
                        color: #fff;
                        font-size: 0.5rem;
                        padding: 0;
                        border: 0;
                        border-radius: 0.1rem;
                    }
                    span {
                        width: 0.25rem;
                        font-size: 0.6rem;
                        text-align: center;
                    }
                }
                .jinping {
                    margin-top: 0.45rem;
                    font-size: 0.65rem;
                    color: #777777;
                }
                .image {
                    margin-top: 0.55rem;
                    img {
                        width: 3.15rem;
                        height: 3.45rem;
                        margin: 0 auto;
                        display: block;
                    }
                }
                .btn_pro {
                    border: 0.05rem solid #ff0000;
                    color: #ff0000;
                    background: #f8e9e9;
                    border-radius: 0.1rem;
                    margin: 0 auto;
                    margin-top: 0.25rem;
                    font-size: 0.5rem;
                    line-height: 0.8rem;
                    box-sizing: border-box;
                    height: 0.8rem;
                    display: block;
                }
                .label {
                    font-size: 0.6rem;
                    color: #ff0000;
                    text-align: center;
                    margin-top: 0.3rem;
                }
            }
        }
    }
    .home_content_list {
        background: #ffffff;
        padding: 0.35rem 0.4rem;
    }
    .hd_list {
        &_item {
            padding: 0.55rem 0.4rem;
            background: #f8f8f8;
            height: 9.35rem;
            box-sizing: border-box;
            margin-right: 0.175rem;
            &:last-child {
                margin-right: 0;
            }
            img {
                width: 3.7rem;
                height: 4.5rem;
                display: block;
                margin: 0 auto;
            }
            &_title {
                margin-top: 1rem;
                font-size: 0.65rem;
                color: #333;
                height: 1.5rem;
                line-height: 0.75rem;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            &_label {
                margin-top: 0.65rem;
                color: #fa0000;
                font-size: 0.7rem;
                span {
                    font-size: 0.6rem;
                    margin-left: 0.25rem;
                }
            }
        }
    }
    .live_item {
        flex-flow: wrap;
        width: ~'calc(50% - 0.125rem)';
        height: 13rem;
        box-sizing: border-box;
        margin-bottom: 0.25rem;
        position: relative;
        &::after {
            // content: "";
            // width: calc(100% - 0.05rem);
            // height: 100%;
            // left: 0;
            // top: 0;
            // position: absolute;
            // border: 0.05rem solid #f5f4f4;
            content: "";
            display: block;
            position: absolute;
            left: -50%;
            top: -50%;
            width: 200%;
            height: 200%;
            border: 0.05rem solid #e8e8e8;
            transform: scale(0.5);
            pointer-events: none;
        }
        &:nth-child(odd) {
            margin-right: 0.125rem;
        }
        &:nth-child(even) {
            margin-left: 0.125rem;
        }
        &_img {
            background: #f8f8f8;
            img {
                width: 100%;
                height: 8.85rem;
                display: block;
                margin: 0 auto;
            }
        }
        &_content {
            background: #fff;
            padding: 0.55rem 0.5rem;
            &_title {
                font-size: 0.65rem;
                color: #333;
                height: 1.5rem;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            &_label {
                margin-top: 0.65rem;
                color: #fa0000;
                font-size: 0.7rem;
                span {
                    font-size: 0.6rem;
                    margin-left: 0.25rem;
                }
            }
        }
    }
    .end {
        font-size: 0.7rem;
        background: #ffffff;
        text-align: center;
        color: #cdcdcd;
        padding: 0.75rem 0 1.6rem 0;
        div {
            margin-top: 0.5rem;
        }
        img {
            width: 1.5rem;
            height: 1.5rem;
            display: block;
            margin: 0 auto;
        }
    }
    .move_to_ani {
        animation: move 0.5s forwards;
        -webkit-backface-visibility: hidden;
    }
    .move_bt_ani {
        animation: movebt 0.3s forwards;
        -webkit-backface-visibility: hidden;
    }
    .bg_to {
        animation: bg 0.3s forwards;
        -webkit-backface-visibility: hidden;
    }
    .bg_bt {
        animation: bg_to 0.3s forwards;
        -webkit-backface-visibility: hidden;
    }
}

@keyframes bg {
    0% {
        background: initial;
    }
    40% {
        background: initial;
    }
    100% {
        background: #fff;
    }
}

@keyframes bg_to {
    0% {
        background: #fff;
    }
    100% {
        background: initial;
    }
}

@keyframes move {
    0% {
        width: calc(100% - 1.6rem);
        left: 0%;
        transform: translate3d(0, 0, 0);
        background: rgba(255, 255, 255, 0.9);
    } // 40% {
    //     width: 70%;
    //     left: 12%;
    //     transform: translate3d(0, 0, 0);
    //     margin: 0;
    //     background: #fff;
    // }
    100% {
        width: 75%;
        left: 12%;
        transform: translate3d(0, -1.8rem, 0);
        margin: 0;
        background: #f4f4f4;
    }
}

@keyframes movebt {
    0% {
        width: 70%;
        left: 12%;
        transform: translate3d(0, -1.8rem, 0);
        margin: 0;
        background: #f4f4f4;
    } // 40% {
    //     width: 70%;
    //     left: 12%;
    //     transform: translate3d(0, 0, 0);
    //     margin: 0;
    //     background: #fff;
    // }
    100% {
        width: calc(100% - 0.8rem);
        left: 0%;
        transform: translate3d(0, 0, 0);
        background: rgba(255, 255, 255, 0.9);
    }
}